<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0"/>

    <title>Title</title>
    <link rel="stylesheet" th:href="@{/client/css/my.css}"/>
    <script th:src="@{/client/lib/jquery/jquery-3.7.1.min.js}"></script>
    <script th:inline="javascript">
        let ctx = /*[[@{/}]]*/"";
        if (ctx.endsWith("/")) {
            ctx = ctx.substring(0, ctx.length - 1);
        }
    </script>
    <script th:src="@{/client/js/my.js}"></script>
</head>
<body>
<div class="main">
    <div class="name"><h2>用户名:</h2>
        <h2 id="userName" th:if="${data != null}" th:text="${data.userName}"> 用户未登录 </h2>


    </div>
    <div class="phone"><h2>手机号:</h2>
        <h2 id="phone" th:if="${data != null}"  th:text="${data.phone}" >用户未登录 </h2>
    </div>
    <button class="out">退出</button>
    <button class="login">登录</button>
</div>
</body>
<style>

</style>
</html>